package com.jmz.apt.api.message.request;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by fanglexue on 2019/10/28.
 */
public class Query {
    /**
     * 第几页
     */
    private Integer pageno;

    /**
     * 每页多少条
     */
    private Integer pagesize;

    /**
     * 查询条件
     */
    private List<Condition> condition=new ArrayList<>();

    /**
     * 排序字段
     */
    private String sortfiled;

    /**
     * 排序方式 asc 升序 desc 降序
     */
    private String sorttype;

    public Integer getPageno() {
        return pageno;
    }

    public void setPageno(Integer pageno) {
        this.pageno = pageno;
    }

    public Integer getPagesize() {
        return pagesize;
    }

    public void setPagesize(Integer pagesize) {
        this.pagesize = pagesize;
    }

    /**
     * @return the condition
     */
    public List<Condition> getCondition() {
        return condition;
    }

    /**
     * @param condition the condition to set
     */
    public void setCondition(List<Condition> condition) {
        this.condition = condition;
    }

    public String getSortfiled() {
        return sortfiled;
    }

    public void setSortfiled(String sortfiled) {
        this.sortfiled = sortfiled;
    }

    public String getSorttype() {
        return sorttype;
    }

    public void setSorttype(String sorttype) {
        this.sorttype = sorttype;
    }
}
